/*
 * Copyright 2008-2023 dexian.vip. All rights reserved.
 * Support: http://www.dexian.vip
 * License: http://www.dexian.vip/license
 */

package vip.dexian.admin.searcher;

import vip.dexian.common.query.Filter;
import vip.dexian.common.query.Order;
import vip.dexian.common.utils.FilterUtils;
import vip.dexian.core.base.query.BasePageableSearcher;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * 角色分页查询
 *
 * @author 挺好的 2023年06月02日 9:41
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode (callSuper = false)
@Slf4j
public class RolePageSearcher extends BasePageableSearcher {

    /**
     * 是否系统内置
     */
    private Boolean isSystem;

    /**
     * @return 查询条件
     */
    @Override
    public List <Filter> filters () {
        return FilterUtils.builder().isTrueOrFalse("isSystem", this.isSystem).build();
    }


    /**
     * @return 排序
     */
    @Override
    public List <Order> orders () {
        return null;
    }
}
